<?php

include ('config.php');

	session_start();
	$_SESSION = array();
	session_destroy();
	if($GLOBALS["CONFIG"]["authen"] =='kerbauth')
	{

?>
	<html>
	 <body bgcolor="#FFFFFF" link="#000000" vlink="#000000" background="images/background_blue.gif">
	  <table width="633" border="0" cellspacing="0" cellpadding="0">
	   <tr>
  	    <td width="4">&nbsp;&nbsp;&nbsp;</td>
            <td>
	     <table border="0" cellpadding="0" cellspacing="0" width="620">
	      <tr>
               <td width="100%" align="LEFT" BGCOLOR="#31639C"><img SRC="images/blue_left.gif" WIDTH="5" HEIGHT="16" ALIGN="top"><font face="Arial" size="-1" color="#FFFFFF"><B>&nbsp;Thank you for using OpenDocMan</font></B></td>

	      </tr>
              <tr>
                <td width="100%" align="LEFT" BGCOLOR="#FFCE31">
                  <img SRC="images/logout_logo.gif" align="left"><H2>Logging off...</H2>
                </td>
              </tr>
	      <tr>
	       <td align="left">
	 	<img src="/images/white_dot.gif" height="8"><BR>
		<font face="ARIAL" color="#000000" size="-1">We use a cookie to store your credentials for access.  This cookie is kept only in your computers memory and not saved to disk for security purposes.  In order to remove this cookie from memory you must completely exit your browser.  The LOGOUT button below will close the current browser window, but this may not exit your browser software completely.
		 <P>
		
	        </font>
		<P>
		<form NAME="CM">
		 <font face="ARIAL" color="#000000" size="-2">&nbsp;<INPUT TYPE="BUTTON" VALUE="LOGOUT" Onclick="top.close();"></font>
		 <font face="ARIAL" color="#000000" size="-2">&nbsp;</font>
	       </td>
              </tr>
              <tr><td>
	     </td>
	    </tr>
         </table>
        </form>
<?php	
draw_footer();

	}
	else
	{
        	session_start();
        	if(session_unregister('uid'))
        	{
			header('Location:index.php');
		}


	}


?>
